﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    abstract class Hero
    {
        private string name;
        private int age;
        private char sex;
        public Hero()
        { }
        public Hero(string name, int age, char sex)
        {
            this.name = name;
            this.age = age;
            this.sex = sex;
        }

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public int Age { get => age; set => age = value; }
        public char Sex { get => sex; set => sex = value; }
        public abstract void yuyin();
        public abstract void chu();
    }
}
